import {Actor, Action} from 'iflux2';
import {OrderListType} from '../constant/action-type';


export default class OrderListActor extends  Actor {
    defaultState() {
        return {
            list: [],
            userLogos:{}
        }
    }


    @Action(OrderListType.SET_ORDER_LIST)
    setOrderList(state, {list, userLogos}) {
        return state.set('list', list).set('userLogos', userLogos);
    }
}